import 'package:json_annotation/json_annotation.dart';

part 'git_blob.g.dart';

@JsonSerializable()
class GitBlob {
  final String sha;
  final int size;
  final String url;
  final String content;
  final String encoding;

  GitBlob({
    required this.sha,
    required this.size,
    required this.url,
    required this.content,
    required this.encoding,
  });

  factory GitBlob.fromJson(Map<String, dynamic> json) =>
      _$GitBlobFromJson(json);
  Map<String, dynamic> toJson() => _$GitBlobToJson(this);
}
